import { defineStore } from 'pinia';


export const mapData = defineStore({
  id: 'mapData',

  state: () => ({
    planeInfo: {}
  }),

  actions: {
    setplaneInfo(key:string, value:any) {
      this.planeInfo[key] = value;
    },
    getplaneInfo(key:string) {
      return this.planeInfo[key];
    },
  },

  persist: true,
});
